package com.example.config.simpleDynamicTask.job;

/**
 * @author ZhengDing
 * @date 2022/4/10 0:21
 */

public class MyFixedDelayJob implements Runnable{
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()  + " FixedDelayTask ...");
        System.out.println("假设任务执行需要10s ...");
        try {
            Thread.sleep(10000);
            System.out.println("任务执行完毕!!!, 5秒后下一个任务开始执行");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
